package com.wn.cloud.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan("com.wn.cloud")
@SpringCloudApplication
public class CloudPaymentBreaker8007 {
    public static void main(String[] args) {
        SpringApplication.run(CloudPaymentBreaker8007.class, args);
    }

    // @Bean
    // public ServletRegistrationBean getServlet(){
    //     HystrixMetricsStreamServlet streamServlet = new HystrixMetricsStreamServlet();
    //     ServletRegistrationBean registrationBean = new ServletRegistrationBean(streamServlet);
    //     registrationBean.setLoadOnStartup(1);
    //     registrationBean.addUrlMappings("/actuator/hystrix.stream");
    //     registrationBean.setName("HystrixMetricsStreamServlet");
    //     return registrationBean;
    // }
}
